package com.bwie;

import com.github.tobato.fastdfs.FdfsClientConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: badaotianqiong
 * @Date: 2025/6/19 18:39
 * @Description:
 **/
@SpringBootApplication
@MapperScan("com.bwie.mapper")
@Import(FdfsClientConfig.class)
@EnableScheduling
public class ShopApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShopApplication.class,args);
    }


    public RedissonClient redissonClient(){
        Config config = new Config();
        config.useSingleServer().setAddress("redis://192.168.80.192:6379");
        RedissonClient redissonClient = Redisson.create(config);
        return redissonClient;
    }
}
